const LoadingReducer = (oldState = {isloading:false}, action) =>{
    let newState = {...oldState};
    switch(action.type){
        case 'change-loading':
            newState.isloading = action.value;
            return newState;
        default:
            return oldState;
    }
}

export default LoadingReducer;